#include "tidarr.h"

int tidArrinit(tidArr_t* tidArr,int workNum){
    tidArr->arr=(pthread_t *) calloc(workNum,sizeof(pthread_t));
    if (!tidArr->arr) return -1;
    tidArr->workNum=workNum;
    return 1;
}